package com.kcloud.commons.authorization.constants;

import java.util.Map;

/**
 * 通用权限控制常量类
 * @author: songhuiqing
 */
public class AuthorizationConstants {

    /**
     * 接口请求头：业务域编码
     */
    public static final String HEADER_KEY_BIZ_DOMAIN_CODE = "auth.bizCode";

    /**
     * 接口请求头：业务功能编码
     */
    public static final String HEADER_KEY_BIZ_FUNCTION_CODE = "auth.configId";

    /**
     * 接口请求头：用户ID
     */
    public static final String HEADER_KEY_USER_ID = "auth.userId";

    /**
     * 默认表名：业务实体
     */
    public static final String DEFAULT_TABLE_BIZ_ENTITY = "@@BIZ_ENTITY@@";
    /**
     * 默认表名：业务功能
     */
    public static final String DEFAULT_TABLE_BIZ_FUNCTION = "@@BIZ_FUNCTION@@";

    /**
     * 默认表名：用户业务功能
     */
    public static final String DEFAULT_TABLE_USER_BIZ_FUNCTION = "@@USER_BIZ_FUNCTION@@";

    /**
     * 业务实体表，KAA_{业务编码}_ENTITY
     */
    public static final String BIZ_ENTITY_TABLE_TPL = "KAA_%s_ENTITY";
    /**
     * 业务功能表，KAA_{业务编码}_FUNCTION
     */
    public static final String BIZ_FUNCTION_TABLE_TPL = "KAA_%s_FUNCTION";
    /**
     * 用户属性配置权限表，KAU_{业务编码}_CONFIG
     */
    public static final String USER_FUNCTION_TABLE_TPL = "KAU_%s_FUNCTION";

    /**
     * 数据权限表-管理范围，KDT_{业务编码}_CTRL
     */
    public static final String DATA_AUTH_CTRL_TABLE_TPL = "KDT_%s_CTRL";

    /**
     * 数据权限表-使用范围，KDT_{业务编码}_APPLY
     */
    public static final String DATA_AUTH_APPLY_TABLE_TPL = "KDT_%s_APPLY";

}
